package com.chw.user.service;

import com.chw.user.entity.po.User;

import javax.mail.MessagingException;
import java.io.UnsupportedEncodingException;
import java.util.List;

public interface UserService {
    List<User> queryAllData();

    Integer equalsEmail(String email) throws MessagingException, UnsupportedEncodingException, Exception;

    Integer createData(User user);

    Integer validatecode(String email, String code);

    Object login(User user);
}
